import java.text.SimpleDateFormat;
import java.util.Date;

class Target
{
	public Date getTime() { return new Date(); }
}

abstract class Adaptee
{
	public abstract String getTime();
}

public class Adapter extends Adaptee
{
    public static void main(String[] args) {
        Adaptee adp = new Adapter();
	    System.out.println(adp.getTime());
    }

    Target target = new Target();

    @Override
	public String getTime()
	{
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(target.getTime());
	}
}